package common.log.vo;

import org.springframework.context.ApplicationEvent;

import common.log.util.LogType;

public class ApplicationLog {
	/**
	 * 事件类型
	 */
	private ApplicationEvent event;
	/**
	 * 模块编码
	 * 
	 */
	private Integer module;
	/**
	 * 操作类型
	 */
	private LogType type;
	/**
	 * 操作是否成功
	 */
	private boolean isSuccess;
	/**
	 * 消息
	 */
	private String msg;

	public ApplicationLog() {
		super();
	}

	public ApplicationLog(ApplicationEvent event, Integer module) {
		super();
		this.event = event;
		this.module = module;
	}

	public ApplicationLog(ApplicationEvent event, Integer module, LogType type) {
		super();
		this.event = event;
		this.module = module;
		this.type = type;
	}

	public ApplicationLog(ApplicationEvent event, Integer module, LogType type, boolean isSuccess) {
		super();
		this.event = event;
		this.module = module;
		this.type = type;
		this.isSuccess = isSuccess;
	}

	public ApplicationLog(ApplicationEvent event, Integer module, LogType type, boolean isSuccess, String msg) {
		super();
		this.event = event;
		this.module = module;
		this.type = type;
		this.isSuccess = isSuccess;
		this.msg = msg;
	}

	public ApplicationEvent getEvent() {
		return event;
	}

	public void setEvent(ApplicationEvent event) {
		this.event = event;
	}

	public Integer getModule() {
		return module;
	}

	public void setModule(Integer module) {
		this.module = module;
	}

	public LogType getType() {
		return type;
	}

	public void setType(LogType type) {
		this.type = type;
	}

	public boolean isSuccess() {
		return isSuccess;
	}

	public void setSuccess(boolean isSuccess) {
		this.isSuccess = isSuccess;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

}
